import com.golden.gamedev.GameEngine;

import replay.Replay;
import replay.StateTable;


public class ReplayLevel extends Replay{
	private int levelID;
	public ReplayLevel(GameEngine ge, StateTable table, int level) {
		super(ge, table);
		levelID = level;
	}
	@Override
	public void update(long elapsedTime) {
		if(inRange(time)){
			myTable.transformSprite(time);
			time++;
		}
		else
		{
			this.parent.nextGameID = levelID;
			this.finish();
		}
	}
}
